package Launcher;




import org.apache.log4j.xml.DOMConfigurator;

import com.commons.DBPool.DBManager;
import com.commons.DBPool.DBPoolFactory;
import com.game.logger.ObjLogger;

/**
 * 服务器main class
 * @author Administrator
 *
 */
public class launcher {
	/**
	 * 
	 * @param args
	 */
	public static void main(String[] args)  {
		try {
			//日志文件初始化
			DOMConfigurator.configure("res/log4j.xml");
			ObjLogger.ObjLogger.info("log meassage is[ok]");
			//服务器基础属性初始化
			DBManager.IntiData();
			ObjLogger.ObjLogger.info("server base is Intilazition [ok]");
			//初始化数据库连接池
			DBPoolFactory.getPoolInstance().IntiPool();
			
			
			
		} catch (Exception e) {
			ObjLogger.ObjLogger.error("server start is flaied.......", e);
		}
		
	}

}
